package com.goldwind.chat.service.impl;

import com.goldwind.chat.dao.MessageMapper;
import com.goldwind.chat.service.MessageService;
import com.goldwind.pojo.Message;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MessageImpl implements MessageService {

    @Autowired
    private MessageMapper messageMapper;


    @Override
    public List<Message> selectAll() {
      return messageMapper.selectAll();
    }

    @Override
    public boolean insert(Message msg) {
        messageMapper.insert(msg);
        return true;
    }


}
